﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="CustomerManage.aspx.cs" Inherits="ElectronicSelling.CustomerManage" %>

<%@ Register Src="~/UserControl/OrderManage.ascx" TagPrefix="uc" TagName="OrderManage" %>
<%@ Register Src="~/UserControl/PasswordChange.ascx" TagPrefix="uc" TagName="PasswordChange" %>
<%@ Register Src="~/UserControl/OrderProcess.ascx" TagPrefix="uc" TagName="OrderProcess" %>
<%@ Register Src="~/UserControl/EditCustomerInfo.ascx" TagPrefix="uc" TagName="EditCustomerInfo" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="cus_manage">
        <div class="path">
            <a href="Default.aspx">Trang chủ</a>&nbsp;&nbsp;>&nbsp;
            <a href="CustomerManage.aspx">Thông tin tài khoản <strong><% Response.Write(Session["UserName"]); %></strong> </a>
        </div>
        <div class="verticle_menu_cus">
            <div class="block_menu">
                <div class="verticle_menu_title">Quản lý đơn hàng</div>
                <a id="A2" href="CustomerManage.aspx?cusact=newestorder">
                    <div class="block_menu_item">Đơn hàng mới</div>
                </a>
                <a id="A1" href="CustomerManage.aspx?cusact=orderlist">
                    <div class="block_menu_item">Tất cả đơn hàng</div>
                </a>
                <a id="A3" href="" runat="server">
                    <div class="block_menu_item">Đơn hàng đã thanh toán</div>
                </a>
            </div>
            <div class="block_menu">
                <div class="verticle_menu_title">Quản lý thông tin</div>
                <a id="A4" href="CustomerManage.aspx?cusact=changepass">
                    <div class="block_menu_item">Đổi mật khẩu</div>
                </a>
                <a id="A5" href="CustomerManage.aspx?cusact=editcus">
                    <div class="block_menu_item">Chỉnh sửa thông tin tài khoản</div>
                </a>

            </div>
        </div>
        <div class="cus_manage_content">
            <% if (Request.QueryString["cusact"] != null)
                   switch (QueryString())
                   {
                       case "changepass":
            %>
            <uc:PasswordChange runat="server" ID="PasswordChange" />
            <%
                           break;
                       case "newestorder":
            %>
            <uc:OrderManage runat="server" ID="OrderManage" />
            <%
                           break;
                       case "orderlist":
            %>
            <uc:OrderManage runat="server" ID="OrderManage1" />
            <%
                           break;
                       case "editcus":
            %>
            <uc:EditCustomerInfo runat="server" id="EditCustomerInfo" />
            <%
                           break;
                   }
            %>
        </div>
        <div class="clear">
        </div>
    </div>

</asp:Content>
